<header>
	<div class="nav-w">
    	<section class="nav-s"><a href="<{$config.weburl}>"><nav>首页</nav></a></section>
    	<section class="nav-c"><span>列表页</span></section>
    	<section class="nav-e"><{if $tgcat }><a class="list" href="javascript:void(0)"><nav>分类</nav></a><{/if}></section>
    </div>
</header>
<script src="<{$config.weburl}>/script/jquery-1.4.4.min.js" type="text/javascript"></script>
<link href="<{$config.weburl}>/templates/wap/css/list.css" rel="stylesheet" type="text/css" />
<section class="filter clearfix">
	<ul class="clearfix">
    	<{assign var=s value=$smarty.get.orderby}>
        <li <{if !$s}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>"><span>默认</span></a></li>
        <li <{if $s==1}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>&orderby=1"><span>销量</span></a></li>
        <li <{if $s==2}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>&orderby=2"><span>人气</span></a></li>
        <li <{if $s==4}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>&orderby=4"><span>总价</span></a></li>
    </ul>
</section>
<section class="itemSearchList">
<{if $tg.list}>
<div class="itemSearchResult clearfix">
    <{foreach item=list key=num from=$tg.list}>
    <dl>
        <dt><a class="p-img" href="<{$config.weburl}>/?m=tg&s=detail&id=<{$list.id}>"><img height="80" width="80" alt="<{$list.name}>" src="<{$list.pic}>"></a> </dt>
        <dd>
            <p class="p-name"><a href="<{$config.weburl}>/?m=tg&s=detail&id=<{$list.id}>"><{$list.name}></a></p>
            <p class="p-price"><strong>
                <{$config.money}><{$list.price}></strong>
                <s><{$config.money}><{$list.market_price}></s>
            </p>
            <p class="p-detail">已购买<strong><{$list.virtual_quantity+$list.sell_amount}></strong>件</p>
        </dd>
    </dl>
    <{/foreach}>
    <{$info.page}>
</div>
<{else}>
<div class="itemsNull">
    <h3>没有搜索到相关宝贝</h3>
</div>
<{/if}>
<div class="leftcate hidden">
    <{if $tgcat }>
    <h2>分类 <a class="remove" href="javascript:void(0)"><nav>取消</nav></a></h2>
    <ul>
        <li><a <{if !$smarty.get.catid}>class="current"<{/if}>href="<{$config.weburl}>/?m=tg">全部</a></li>
        <{foreach item=list from=$tgcat}>
        <li><a <{if $smarty.get.catid==$list.id}>class="current"<{/if}> href="<{$config.weburl}>/?m=tg&catid=<{$list.id}>"><{$list.catname}></a></li>
        <{/foreach}>
    </ul>
    <{/if}>
</div>
</section>
<script>
$(".list").click(function(){
	window.scroll(0,0);
 	$('.leftcate').show();
	$('.itemSearchResult').hide();

});
$('.remove').click(function(){
 	$('.leftcate').hide();
 	$('.itemSearchResult').show();	
});
</script>

